
<script>
import SonA from "./SonA.vue";  
import SonB from "./SonB.vue";

export default{
    name: 'Brother',
    components: {SonA, SonB},
    data(){
        return {
            msg:"hello world"
        }
    }
}   

</script>

<template>
    <h1>兄弟之间传值（使用的mitt）事件总线的思路</h1>
    <div>{{msg}}</div>
    <SonA>  </SonA>
    <SonB>  </SonB>
</template>

<style lang="css" scoped>
    
</style>
